package com.manage.po;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "device")
public class Device implements Serializable{

	private static final long serialVersionUID = -8010135537569121725L;
	
	@Id
	@Column(name = "deviceid", unique = true, nullable = false)
	private String deviceid;	
	@Column(name = "assetname", nullable = false)//资产名称
	private String assetname;	
	@Column(name = "assetnumber",  nullable = false)//资产标号
	private String assetnumber;	
	@Column(name = "devicetype", nullable = false)//设备类型
	private String devicetype;	
	
	@Column(name = "buydate", nullable = false)//购置日期
	private Date buydate;
	@Column(name = "price", nullable = false)//单价
	private String price;
	@Column(name = "count", nullable = false)//数量
	private String count;
	@Column(name = "measurunit", nullable = false)//计量单位
	private String measurunit;
	@Column(name = "model", nullable = false)//型号规格
	private String model;
	@Column(name = "manufacturer", nullable = false)//生成厂家
	private String manufacturer;
	@Column(name = "devstate", nullable = false)//设备状态
	private String devstate;
	@Column(name = "enterdate", nullable = false)//录入日期
	private Date enterdate;
	@Column(name = "note", nullable = false)//备注
	private String note;
	@Column(name = "operator", nullable = false) //操作者
	private String operator;
	@Column(name = "belongroom",nullable =false) //所属实验室
	private String belongroom;
	

	public String getDeviceid() {
		return deviceid;
	}

	public void setDeviceid(String deviceid) {
		this.deviceid = deviceid;
	}

	public String getAssetnumber() {
		return assetnumber;
	}

	public void setAssetnumber(String assetnumber) {
		this.assetnumber = assetnumber;
	}

	public String getDevicetype() {
		return devicetype;
	}

	public void setDevicetype(String devicetype) {
		this.devicetype = devicetype;
	}

	public String getAssetname() {
		return assetname;
	}

	public void setAssetname(String assetname) {
		this.assetname = assetname;
	}

	public Date getBuydate() {
		return buydate;
	}

	public void setBuydate(Date buydate) {
		this.buydate = buydate;
	}

	public String getPrice() {
		return price;
	}

	public void setPrice(String price) {
		this.price = price;
	}

	public String getCount() {
		return count;
	}

	public void setCount(String count) {
		this.count = count;
	}

	public String getMeasurunit() {
		return measurunit;
	}

	public void setMeasurunit(String measurunit) {
		this.measurunit = measurunit;
	}

	public String getModel() {
		return model;
	}

	public void setModel(String model) {
		this.model = model;
	}

	public String getManufacturer() {
		return manufacturer;
	}

	public void setManufacturer(String manufacturer) {
		this.manufacturer = manufacturer;
	}

	public String getDevstate() {
		return devstate;
	}

	public void setDevstate(String devstate) {
		this.devstate = devstate;
	}

	public Date getEnterdate() {
		return enterdate;
	}

	public void setEnterdate(Date enterdate) {
		this.enterdate = enterdate;
	}


	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	public String getOperator() {
		return operator;
	}

	public void setOperator(String operator) {
		this.operator = operator;
	}

	public String getBelongroom() {
		return belongroom;
	}

	public void setBelongroom(String belongroom) {
		this.belongroom = belongroom;
	}

	@Override
	public String toString() {
		return "Device [deviceid=" + deviceid + ", assetname=" + assetname
				+ ", assetnumber=" + assetnumber + ", devicetype=" + devicetype
				+ ", buydate=" + buydate + ", price=" + price + ", count="
				+ count + ", measurunit=" + measurunit + ", model=" + model
				+ ", manufacturer=" + manufacturer + ", devstate=" + devstate
				+ ", enterdate=" + enterdate + ", note=" + note + ", operator="
				+ operator + ", belongroom=" + belongroom + "]";
	}

	
	////////////////////////////////////////////////
	
}
